package org.example.seata.bs.api.entity.account;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author hzq
 * @date 2021/12/6 16:45
 */
@Data
@TableName("`account_auth`")
public class AccountAuth extends Model<AccountAuth> {

    @TableId(type = IdType.AUTO)
    private Integer accountAuthId;

    /**
     * 用户id
     */
    private Integer accountId;

    /**
     * 全局唯一id
     */
    private String unionId;

    /**
     * 认证类型
     */
    private String authType;

    /**
     * 标识
     */
    private String principal;

    /**
     * 凭证
     */
    private String credentials;

    /**
     * 扩展信息 如第三方信息
     */
    private String expand;

    /**
     * 租户id
     */
    private Integer tenantId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
